import request from '@/utils/request'

/**
 * 获取汇款账号列表
 * @returns {Promise | Promise<unknown>}
 */
export function getRemittanceAccountList(){
  return request({
    url: '/remittance/getRemittanceAccountList',
    method: 'get',
  })
}

/**
 * 添加汇款账号
 * @param params
 * @returns {Promise | Promise<unknown>}
 */
export function addRemittanceAccount(params){
  return request({
    url: '/remittance/addRemittanceAccount',
    method: 'post',
    data : params,
  })
}

/**
 * 修改汇款账号
 * @param params
 * @returns {Promise | Promise<unknown>}
 */
export function saveRemittanceAccount(params){
  return request({
    url: '/remittance/saveRemittanceAccount',
    method: 'post',
    data : params,
  })
}

/**
 * 移除汇款账号
 * @param params
 * @returns {Promise | Promise<unknown>}
 */
export function delRemittanceAccount(params){
  return request({
    url: '/remittance/delRemittanceAccount',
    method: 'delete',
    data : params,
  })
}

/**
 * 获取待处理汇款记录列表
 * @returns {Promise | Promise<unknown>}
 */
export function getWaitRemittanceRecordList(params){
  return request({
    url: '/remittance/getWaitRemittanceRecordList',
    method: 'post',
    data : params,
  })
}

/**
 * 获取已处理汇款记录列表
 * @returns {Promise | Promise<unknown>}
 */
export function getProcessedRemittanceRecordList(params){
  return request({
    url: '/remittance/getProcessedRemittanceRecordList',
    method: 'post',
    data : params,
  })
}

/**
 * 处理待处理汇款记录
 * @returns {Promise | Promise<unknown>}
 */
export function handleRemittanceRecord(params){
  return request({
    url: '/remittance/handleRemittanceRecord',
    method: 'post',
    data : params,
  })
}
